<?php

// app/config/my_session.php
//
// Revert value and get rid of the referrer check even when,
// Security.level is medium

ini_restore('session.referer_check'); //是否做referer检查
ini_set('session.use_trans_sid', 0); //是否在url中显示sid
ini_set('session.name', Configure::read('Session.cookie'));
// ini_set('session.name', "USERNAME");
// Cookie is now destroyed when browser is closed, doesn't
// persist for days as it does by default for security
// low and medium
//var_dump(Configure::read('Session.cookie_lifetime'));die;
//ini_set('session.cookie_lifetime',3600);
// Cookie path is now '/' even if you app is within a sub
// directory on the domain
$this->path = '/';
ini_set('session.cookie_path', $this->path);
// Session cookie now persists across all subdomains
ini_set('session.cookie_domain', env('HTTP_BASE'));

//echo phpinfo();
?>